# Maintainer: omni <omni+alpine@hack.org>
pkgname=ud
pkgver=1.1.0
pkgrel=0
pkgdesc="The UNIX day utility"
url="https://github.com/xyproto/ud"
license="BSD-3-Clause"
arch="all"
makedepends="cmake"
source="$pkgname-$pkgver.tar.gz::https://github.com/xyproto/ud/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake -B build -S .
	make -C build
}

check() {
	./build/ud --version
}

package() {
	install -Dm0755 "$builddir"/build/ud "$pkgdir"/usr/bin/ud
}

sha512sums="
7c3777405a67014ee46e1e0c3c61332adc21e5e4760a7ad4ad61f9a55387896112b338dd0624db115cb4fb33fe830ee91ca7c85712bd4faa70f216e908fba965  ud-1.1.0.tar.gz
"
